package cn.iocoder.yudao.module.signature.controller.app.signinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 应用签名记录新增/修改 Request VO")
@Data
public class ApplicationSignInfoSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5525")
    private Long id;

    @Schema(description = "应用id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9550")
    @NotNull(message = "应用id不能为空")
    private Long applicationId;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "3026")
    private Long userId;

    @Schema(description = "设备udid", requiredMode = Schema.RequiredMode.REQUIRED, example = "11999")
    private String udid;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11999")
    private Long deviceId;

    @Schema(description = "应用包名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "应用包名不能为空")
    private String packetName;

    @Schema(description = "应用名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "应用名称不能为空")
    private String applicationName;

    @Schema(description = "签名应用url", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "https://www.iocoder.cn")
    private String applicationUrl;

    @Schema(description = "plist文件url", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "https://www.iocoder.cn")
    private String plistUrl;


    @Schema(description = "时间锁天数", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "1")
    private Integer timeLockDays;

    /**
     * 手动开启时间锁标识
     */
    private Integer timeLockFlag;

    private String iconImg;

    private Integer addNum;

    private Integer fromNum;
}